<?php (new july\julyadmin\builder\Builder())->renderTop(false); ?>
    <div class="lyear-layout-web">
        <div class="lyear-layout-container">
            <!--左侧导航-->
            <aside class="lyear-layout-sidebar">
                <!-- logo -->
                <div id="logo" class="sidebar-header">
                    <a href="{:url('Index/index')}">
                        {if $config.admin_logo_type==0}
                        <img src="{$config.admin_logo}" title="LightYear" alt="LightYear" />
                        {/if}
                        {if $config.admin_logo_type==1}
                            <font>{$config.admin_logo_text}</font>
                        {/if}
                    </a>
                </div>
                <div class="lyear-layout-sidebar-info lyear-scroll">
                    <nav class="sidebar-main">
                        <ul class="nav-drawer">
                            <li class="nav-item active">
                                <a class="multitabs" href="{:url('Index/main')}" id="default-page">
                                    <i class="mdi mdi-home"></i>
                                    <span>后台首页</span>
                                </a>
                            </li>
                            <?php foreach($menus as $menu_k=>$menu_v):?>
                                <li class="nav-item{$menu_v.children?' nav-item-has-subnav':''}">
                                    <a {$menu_v.children?'':'class="multitabs"'} href="<?php echo ($menu_v['children']?'javascript:;':$menu_v['url']);?>">
                                        {if $menu_v.ico}
                                        <i class="mdi {$menu_v.ico}"></i>
                                        {/if}
                                        <span>{$menu_v.name}</span>
                                    </a>
                                    {if $menu_v.children}
                                        <ul class="nav nav-subnav">
                                        <?php foreach($menu_v['children'] as $mc_k=>$mc_v):?>
                                            <li class="nav-item{$mc_v.children?' nav-item-has-subnav':''}">
                                                <a {$mc_v.children?'':'class="multitabs"'} href="<?php echo ($mc_v['children']?'javascript:;':$mc_v['url']);?>">
                                                    {if $mc_v.ico}<i class="mdi {$mc_v.ico}"></i>{/if}
                                                    <span>{$mc_v.name}</span>
                                                </a>
                                                {if $mc_v.children}
                                                    <ul class="nav nav-subnav">
                                                    <?php foreach($mc_v['children'] as $mc_k1=>$mc_v1):?>
                                                        <li>
                                                            <a class="multitabs" href="{$mc_v1['url']}">
                                                                {if $mc_v1.ico}<i class="mdi {$mc_v1.ico}"></i>{/if}
                                                                <span>{$mc_v1.name}</span>
                                                            </a>
                                                        </li>
                                                    <?php endforeach;?>
                                                    </ul>
                                                {/if}
                                            </li>
                                        <?php endforeach;?>
                                        </ul>
                                    {/if}
                                </li>
                            <?php endforeach;?>
                        </ul>
                    </nav>
                    <div class="sidebar-footer">
                        <p class="copyright">
                            <span>{$config.admin_logo_copyright}</span>
                        </p>
                    </div>
                </div>
            </aside>
            <!--End 左侧导航-->
            <!--头部信息-->
            <header class="lyear-layout-header">
                <nav class="navbar">
                    <div class="navbar-left">
                        <div class="navbar-right d-flex align-items-center">
                            <div class="lyear-aside-toggler">
                                <span class="lyear-toggler-bar"></span>
                                <span class="lyear-toggler-bar"></span>
                                <span class="lyear-toggler-bar"></span>
                            </div>
                            <!-- 后台左上角导航start -->
                            <?php foreach($topLeftMenus as $menu_k=>$menu_v):?>
                                {if $menu_v.children}
                                    <div class="dropdown">
                                        <li data-bs-toggle="dropdown" class="item">
                                            <a class="p-2" title="{$menu_v.name}" href="javascript:;">
                                                <i class="mdi {$menu_v.ico}"></i>
                                                {$menu_v.name}
                                            </a>
                                        </li>
                                        <ul class="lyear-topbar dropdown-menu">
                                            <?php foreach($menu_v['children'] as $mc_k=>$mc_v):?>
                                                <li class="multitabs dropdown-item">
                                                    <a class="multitabs p-2" href="{$mc_v['url']}">
                                                        <i class="mdi {$mc_v.ico}"></i>
                                                        <span>{$mc_v.name}</span>
                                                    </a>
                                                </li>
                                            <?php endforeach;?>
                                        </ul>
                                    </div>
                                {else}
                                    <li>
                                        <a class="p-2 <?php echo ($menu_v['controller'] && $menu_v['action']?'multitabs':'');?>" title="{$menu_v.name}" href="<?php echo ($menu_v['controller'] && $menu_v['action']?$menu_v['url']:'javascript:;');?>">
                                        <i class="mdi {$menu_v.ico}"></i>
                                        {$menu_v.name}
                                        </a>
                                    </li>
                                {/if}                
                            <?php endforeach;?>
                            <!-- 后台左上角导航end -->
                        </div>
                    </div>
                    <ul class="navbar-right d-flex align-items-center">
                        <!-- 后台右上角导航start -->
                        <?php foreach($topRightMenus as $menu_k=>$menu_v):?>
                            {if $menu_v.children}
                                <div class="dropdown">
                                    <li data-bs-toggle="dropdown" class="item">
                                        <a class="p-2" title="{$menu_v.name}" href="javascript:;">
                                            <i class="mdi {$menu_v.ico}"></i>
                                            {$menu_v.name}
                                        </a> 
                                    </li>
                                    <ul class="lyear-topbar dropdown-menu">
                                        <?php foreach($menu_v['children'] as $mc_k=>$mc_v):?>
                                            <li class="multitabs dropdown-item">
                                                <a class="multitabs" href="{:$mc_v['url']}">
                                                    <i class="mdi {$mc_v.ico}"></i>
                                                    <span>{$mc_v.name}</span>
                                                </a>
                                            </li>
                                        <?php endforeach;?>
                                    </ul>
                                </div>
                            {else}
                                <li>
                                    <a class="p-2 <?php echo ($menu_v['controller'] && $menu_v['action']?'multitabs':'');?>" title="{$menu_v.name}" href="<?php echo ($menu_v['controller'] && $menu_v['action']?$menu_v['url']:'javascript:;');?>">
                                    <i class="mdi {$menu_v.ico}"></i>
                                    {$menu_v.name}
                                    </a>
                                </li>
                            {/if}                
                        <?php endforeach;?>
                        <!-- 后台右上角导航end -->
                        <!--切换主题配色-->
                        <li class="dropdown dropdown-skin">
                            <span data-bs-toggle="dropdown" class="ico-item">
                                <i class="mdi mdi-palette fs-5"></i>
                            </span>
                            <ul class="dropdown-menu dropdown-menu-end" data-stopPropagation="true">
                                <li class="lyear-skin-title">
                                    <p>主题</p>
                                </li>
                                <li class="lyear-skin-li clearfix">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_1" value="" checked="checked">
                                        <label class="form-check-label" for="site_theme_1"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_2" value="translucent-green">
                                        <label class="form-check-label" for="site_theme_2"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_3" value="translucent-blue">
                                        <label class="form-check-label" for="site_theme_3"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_4" value="translucent-yellow">
                                        <label class="form-check-label" for="site_theme_4"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_5" value="translucent-red">
                                        <label class="form-check-label" for="site_theme_5"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_6" value="translucent-pink">
                                        <label class="form-check-label" for="site_theme_6"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_7" value="translucent-cyan">
                                        <label class="form-check-label" for="site_theme_7"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="site_theme" id="site_theme_8" value="dark">
                                        <label class="form-check-label" for="site_theme_8"></label>
                                    </div>
                                </li>
                                <li class="lyear-skin-title">
                                    <p>LOGO</p>
                                </li>
                                <li class="lyear-skin-li clearfix">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_1" value="" checked="checked">
                                        <label class="form-check-label" for="logo_bg_1"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_2" value="color_2">
                                        <label class="form-check-label" for="logo_bg_2"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_3" value="color_3">
                                        <label class="form-check-label" for="logo_bg_3"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_4" value="color_4">
                                        <label class="form-check-label" for="logo_bg_4"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_5" value="color_5">
                                        <label class="form-check-label" for="logo_bg_5"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_6" value="color_6">
                                        <label class="form-check-label" for="logo_bg_6"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_7" value="color_7">
                                        <label class="form-check-label" for="logo_bg_7"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_8" value="color_8">
                                        <label class="form-check-label" for="logo_bg_8"></label>
                                    </div>
                                </li>
                                <li class="lyear-skin-title">
                                    <p>头部</p>
                                </li>
                                <li class="lyear-skin-li clearfix">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_1" value="" checked="checked">
                                        <label class="form-check-label" for="header_bg_1"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_2" value="color_2">
                                        <label class="form-check-label" for="header_bg_2"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_3" value="color_3">
                                        <label class="form-check-label" for="header_bg_3"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_4" value="color_4">
                                        <label class="form-check-label" for="header_bg_4"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_5" value="color_5">
                                        <label class="form-check-label" for="header_bg_5"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_6" value="color_6">
                                        <label class="form-check-label" for="header_bg_6"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_7" value="color_7">
                                        <label class="form-check-label" for="header_bg_7"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="header_bg" id="header_bg_8" value="color_8">
                                        <label class="form-check-label" for="header_bg_8"></label>
                                    </div>
                                </li>
                                <li class="lyear-skin-title">
                                    <p>侧边栏</p>
                                </li>
                                <li class="lyear-skin-li clearfix">
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_1" value="" checked="checked">
                                        <label class="form-check-label" for="sidebar_bg_1"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_2" value="color_2">
                                        <label class="form-check-label" for="sidebar_bg_2"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_3" value="color_3">
                                        <label class="form-check-label" for="sidebar_bg_3"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_4" value="color_4">
                                        <label class="form-check-label" for="sidebar_bg_4"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_5" value="color_5">
                                        <label class="form-check-label" for="sidebar_bg_5"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_6" value="color_6">
                                        <label class="form-check-label" for="sidebar_bg_6"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_7" value="color_7">
                                        <label class="form-check-label" for="sidebar_bg_7"></label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_8" value="color_8">
                                        <label class="form-check-label" for="sidebar_bg_8"></label>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <!--End 切换主题配色-->
                        <!--个人头像内容-->
                        <li class="dropdown">
                            <a href="javascript:void(0)" data-bs-toggle="dropdown" class="dropdown-toggle">
                                <img class="avatar-md rounded-circle" src="{:session('admininfo.headportrait')}" alt="{:session('admininfo.username')}" />
                                <span style="margin-left: 10px;">
                                {:session('admininfo.realname')}
                                [{:session('admininfo.username')}]
                                </span>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-end">
                                <li>
                                    <a class="multitabs dropdown-item" data-url="{:url('admin/profile')}" href="javascript:void(0)">
                                        <i class="mdi mdi-account"></i>
                                        <span>个人信息</span>
                                    </a>
                                </li>
                                <li>
                                    <a class="multitabs dropdown-item" data-url="{:url('admin/changePassword')}" href="javascript:void(0)">
                                        <i class="mdi mdi-lock-outline"></i>
                                        <span>修改密码</span>
                                    </a>
                                </li>
                                <li>
                                    <a class="multitabs dropdown-item" data-url="{:url('cache/clearCache')}" href="javascript:void(0)">
                                        <i class="mdi mdi-delete"></i>
                                        <span>清空缓存</span>
                                    </a>
                                </li>
                                <li class="dropdown-divider"></li>
                                <li>
                                    <a class="dropdown-item" href="{:url('Index/LogOut')}">
                                        <i class="mdi mdi-logout-variant"></i>
                                        <span>退出登录</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <!--End 个人头像内容-->
                    </ul>
                </nav>
            </header>
            <!--End 头部信息-->
            <!--页面主要内容-->
            <main class="lyear-layout-content">
                <div id="iframe-content"></div>
            </main>
            <!--End 页面主要内容-->
        </div>
    </div>
<?php (new july\julyadmin\builder\Builder())->renderBottomSource(); ?>
<!--首页 js-->
<script type="text/javascript" src="/static/assets/admin/js/index.min.js"></script>
<script src="/static/assets/admin/js/main.min.js"></script>
<?php (new july\julyadmin\builder\Builder())->renderBottom(); ?>